libxc: New hcall_buf_{prep,release} pre-mlock interface
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 22 Jan 2010 10:59:03 +0000 (10:59 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 22 Jan 2010 10:59:03 +0000 (10:59 +0000)
commitd6aaa9ee0f8ba5d2d8ff1187b05ed9becee0b40c
tree3b69d194167117b66f08f86321756f58703a44e7
parent379e63ed3da8f6d874d9bc5d6fa05a85afb60238
libxc: New hcall_buf_{prep,release} pre-mlock interface

Allow certain performance-critical hypercall wrappers to register data
buffers via a new interface which allows them to be 'bounced' into a
pre-mlock'ed page-sized per-thread data area. This saves the cost of
mlock/munlock on every such hypercall, which can be very expensive on
modern kernels.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
tools/libxc/xc_domain_restore.c
tools/libxc/xc_domain_save.c
tools/libxc/xc_misc.c
tools/libxc/xc_physdev.c
tools/libxc/xc_private.c
tools/libxc/xc_private.h
tools/libxc/xg_private.c
tools/libxc/xg_private.h